/**
 * 
 */
package com.sci.web.action.eninfomanager;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.EnterpriseInfoManageDao;

/**
 * @author  BaiFuyou
 * @date: Oct 30, 2011 10:55:07 PM
 */
public class DeleteUserByUseridAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1028575326091356139L;
	@Resource
	private EnterpriseInfoManageDao enterpriseInfoManageDao;
	private int userId;
	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(JSON);
		if(enterpriseInfoManageDao.deleteUserById(userId)){
			super.outPrint("ok");
		}else{
			super.outPrint("fail");
		}
		return "json";
	}
}
